<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/7/30
 * Time: 11:08
 */

namespace app\entity;

use yii\db\ActiveRecord;


class SysUserRoleEntity extends ActiveRecord
{

    /**
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param int $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return int
     */
    public function getUserId()
    {
        return $this->user_id;
    }

    /**
     * @param int $user_id
     */
    public function setUserId($user_id)
    {
        $this->user_id = $user_id;
    }

    /**
     * @return int
     */
    public function getRoleId()
    {
        return $this->role_id;
    }

    /**
     * @param int $role_id
     */
    public function setRoleId($role_id)
    {
        $this->role_id = $role_id;
    }

    public static function tableName()
    {
        return "sys_user_role";
    }

}
